package nl.scalasim
package actors

import nl.scalasim.actors.traits.{SimulationActor, HousingActor, StoppableActor, ComposedActor}

/**
 * A simple HousingActor
 *
 * @author Yigal Duppen
 * @since Oct 7, 2010
 */
class House(val addressBook: AddressBook, override val descriptor: ActorDescriptor, val maxResidents: Int)
        extends SimulationActor(descriptor)
                with StoppableActor
                with HousingActor
{

  def handleAct: PartialFunction[Any, Unit] = {
    case Act => reply(Ack)
  }
  callbacks :+= handleAct

}